package com.woniu.petkonwledge.mapper;

import com.woniu.common.entity.ExposureInfo;
import org.apache.ibatis.annotations.*;

import java.util.List;

@Mapper
public interface ExposureInfoMapper {
    @Insert("insert into exposureinfo(describes,address,photo,state,userId,time) values(#{describes},#{address},#{photo},#{state},#{user.id},#{time})")
    public void insertExposureInfo(ExposureInfo exposureInfo);
    @Select("select * from exposureinfo where state=#{state}")
    public List<ExposureInfo> selectExposureInfo(int state);
    @Update("update exposureinfo set state=#{state} where id=#{id}")
    public void reviewExposureInfo(@Param("state")int state,@Param("id") int id);
}
